home *** CD-ROM | disk | FTP | other *** search
- function slideMeXY(tgt, xVal, yVal, oTT, oTTy, oD)
- {
- if(!oTT)
- {
- oTT = baseTweenTime;
- }
- if(!oTTy)
- {
- oTTy = baseTweenType;
- }
- if(!oD)
- {
- oD = 0;
- }
- tgt.tween(["_x","_y"],[xVal,yVal],oTT,oTTy,oD);
- }
- function slideMeY(tgt, val, oTT, oTTy, oD)
- {
- if(!oTT)
- {
- oTT = baseTweenTime;
- }
- if(!oTTy)
- {
- oTTy = baseTweenType;
- }
- if(!oD)
- {
- oD = 0;
- }
- tgt.tween("_y",val,oTT,oTTy,oD);
- }
- function slideMeX(tgt, val, oTT, oTTy, oD)
- {
- if(!oTT)
- {
- oTT = baseTweenTime;
- }
- if(!oTTy)
- {
- oTTy = baseTweenType;
- }
- if(!oD)
- {
- oD = 0;
- }
- tgt.tween("_x",val,oTT,oTTy,oD);
- }
- function alphaMe(tgt, val, oTT, oTTy, oD)
- {
- if(!oTT)
- {
- oTT = baseTweenTime;
- }
- if(!oTTy)
- {
- oTTy = null;
- }
- if(!oD)
- {
- oD = 0;
- }
- tgt.alphaTo(val,oTT,oTTy,oD);
- }
- function dimMe(tgt, val, oTT, oTTy, oD)
- {
- if(!oTT)
- {
- oTT = baseTweenTime;
- }
- if(!oTTy)
- {
- oTTy = null;
- }
- if(!oD)
- {
- oD = 0;
- }
- tgt.brightnessTo(val,oTT,oTTy,oD);
- }
- function enableButton(tgt, b, oTT)
- {
- tgt.enabled = b;
- if(!oTT)
- {
- oTT = baseTweenTime;
- }
- dimMe(tgt,!b ? -70 : 0,oTT);
- }
- com.mosesSupposes.fuse.ZigoEngine.simpleSetup(com.mosesSupposes.fuse.Shortcuts,com.mosesSupposes.fuse.PennerEasing,com.mosesSupposes.fuse.Fuse,com.mosesSupposes.fuse.FuseFMP);
- baseTweenTime = 1;
- baseTweenType = null;
- var hBlink = new com.mosesSupposes.fuse.Fuse();
- hBlink.target = hero;
- hBlink.push({brightOffset:30,cycles:10,time:0.05});
- var sScore = new com.mosesSupposes.fuse.Fuse();
- sScore.target = itemScore;
- sScore.push({start_alpha:100,start_scale:100,time:0.05});
- sScore.push({alpha:0,scale:200,time:1,delay:0.5});
-